package com.hxs.hxsserver.exception;

import lombok.Data;

import java.io.Serializable;

/**
 * @description: Api异常
 * @author: Andi
 * @create: 2020-07-14 15:51
 */
@Data
public class ApiException extends RuntimeException implements Serializable {
    private static final long serialVersionUID = 1L;
    /**
     * 错误码
     */
    private int code;
    private String msg;

    public ApiException(int code, String message) {
        this.code = code;
        this.msg = message;
    }

}
